package com.songcha.library_business.ui.adapter



import android.content.Context
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.songcha.library_business.bean.banner.BannerBean
import com.songcha.library_common.util.GlideUtil
import com.songcha.library_business.R
import com.zhpan.bannerview.BaseBannerAdapter
import com.zhpan.bannerview.BaseViewHolder


class SimpleResImageBannerAdapter() : BaseBannerAdapter<Int>() {

    override fun bindData(holder: BaseViewHolder<Int>, data: Int, position: Int, pageSize: Int) {
        val iv = holder.findViewById<ImageView>(R.id.business_iv_banner)
        iv.setImageResource(data)
    }

    override fun getLayoutId(viewType: Int): Int {
        return R.layout.business_item_simple_banner
    }

}
